<?php

namespace App\Models;

use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class Banner extends Model
{
    use SoftDeletes;

    protected $table = 'banner';

    protected $fillable = [
        'name',
        'img_id',
        'project_id',
        'status',
    ];

    public function upload_file()
    {
        return $this->hasOne(UploadFile::class, 'id', 'img_id');
    }
}
